home *** CD-ROM | disk | FTP | other *** search
- Path: lrz-muenchen.de!sun2!ua302aa
- From: ua302aa@sun2.lrz-muenchen.de (Kurt Watzka)
- Newsgroups: comp.lang.c
- Subject: Re: windows dll
- Date: 9 Jan 1996 14:22:30 GMT
- Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
- Distribution: world
- Message-ID: <4cttn6$84p@sparcserver.lrz-muenchen.de>
- References: <4csoom$q7t@felix.teclink.net>
- NNTP-Posting-Host: sun2.lrz-muenchen.de
-
- Thomas Martin <tmartin@teclink.net> writes:
-
- >I am trying to compile someones source code for a DLL written
- >in MS C7.0. I am using VC 1.0. I keep getting errors saying
- >(warning C4135: conversion between different integral types).
-
- This is not an error, it is a diagnostic message labeled as
- a warning. A conforming compiler is free to spit out any
- diagnostic message it's implementor can think of, as long as
- it does not fail to compile a strictly conforming program.
-
- >An example of the lines that give the error is listed below:
-
- >*(ptr) = pCard->byCompression|pCard->wPlayMode;
-
- You do not tell us what a pCard is, so if we trust the use
- of HN of the original author, Compressiuon seems to be
- a byte and PlayMode seems to be a word. If the size of a
- word is different from a byte on your machine, you use the
- binary or operator on two different integral type. The
- compiler issues a warning about this fact.
-
- >It compiles fine under C7.
-
- Maybe your compiler has an option that lets it treat
- warnings as errors. This could prevent compilation in
- such a case.
-
- Kurt
- --
- | Kurt Watzka Phone : +49-89-2180-6254
- | watzka@stat.uni-muenchen.de
- | ua302aa@sunmail.lrz-muenchen.de
-
-